import allure
from selenium.webdriver.common.by import By
from autoTest_ecshop.base_page.base import  Base


class HomePage(Base):
    # 首页定位搜索框
    InputBox_locator=(By.CSS_SELECTOR,'[name="keywords"]')
    # 搜索按钮定位器
    sBtn_locator=(By.CSS_SELECTOR,'[type="submit"]')
    #第一个产品的照片
    img_locator=(By.XPATH,'//div[@class="goodsItem"]/a[1]/img[1]')
    # 加入购物车
    addCartBtn_locator=(By.CSS_SELECTOR,'li[class="padd"]>a:nth-of-type(1)>img')
    # 获取第一个商品的删除按钮
    delGoods_locator=(By.XPATH,'//tr[2]/td[7]/a[1]')